package com.kuaimacode.kframework.mybatis.models.invite;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author anzy
 * @date 2019/03/31
 */
@TableName("invite")
@Data
public class Invite implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "活动标题")
	@TableField("title")
	private String title;
	@ApiModelProperty(value = "副标题")
	@TableField("sub_title")
	private String subTitle;
	@ApiModelProperty(value = "开始时间")
	@TableField("begin_date")
	private String beginDate;
	@ApiModelProperty(value = "截止时间")
	@TableField("end_date")
	private String endDate;
	@ApiModelProperty(value = "是否有效 0 否 1 有效")
	@TableField("is_available")
	private Integer isAvailable;
	@ApiModelProperty(value = "活动规则")
	@TableField("rule")
	private String rule;
	@ApiModelProperty(value = "活动链接")
	@TableField("url")
	private String url;
	@ApiModelProperty(value = "活动链接（小程序）")
	@TableField("miniapp_url")
	private String miniappUrl;

	@ApiModelProperty(value = "分享的图片")
	@TableField("share_img")
	private String shareImg;

	@ApiModelProperty(value = "发放给被邀请人的优惠券 多个优惠券','隔开")
	@TableField("coupons")
	private String coupons;
	@ApiModelProperty(value = "发放给邀请人的优惠券 多个优惠券','隔开")
	@TableField("invite_coupons")
	private String inviteCoupons;
	@ApiModelProperty(value = "创建人")
	@TableField("create_by")
	private Long createBy;
	@ApiModelProperty(value = "创建时间")
	@TableField("create_at")
	private Date createAt;
}
